export default [
  // user
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', component: './User/Login' },
      { path: '/user/register', component: './User/Register' },
      { path: '/user/register-result', component: './User/RegisterResult' },
    ],
  },
  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    routes: [
      // dashboard
      { path: '/', redirect: '/list' },
      {
        path: '/dashboard',
        name: 'dashboard',
        icon: 'form',
        routes: [
          {
            path: '/dashboard/redpacket',
            name: 'redpacket',
            component: './Publish/RedPacket',
          },
          {
            path: '/dashboard/video',
            name: 'video',
            component: './Publish/Info',
          },
          {
            path: '/dashboard/file',
            name: 'file',
            component: './Publish/Info',
          },
          {
            path: '/dashboard/photo',
            name: 'photo',
            component: './Publish/Info',
          },
        ],
      },
      {
        path: '/list',
        icon: 'profile',
        name: 'list',
        component: './List/TableList',
      },
      {
        path: '/list/detail/:id',
        name: 'detail',
        component: './Profile/AdvancedProfile',
        hideInMenu: true,
      },
      {
        path: '/list/info/:id',
        name: 'detail',
        component: './Profile/PostInfo',
        hideInMenu: true,
      },
      {
        path: '/notice',
        icon: 'bell',
        name: 'notice',
        component: './List/NoticeList',
      },
    ],
  },
];
